package my.study.c.feign.app.index.controller;

import my.study.c.feign.app.index.service.MyFeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class ConsumerController {

    @Resource
    MyFeignClient myFeignClient;

    @RequestMapping("/hello")
    public String index() {
        return myFeignClient.hello();
    }
}
